#pragma once

#include "TexturePreviewLabel.h"
#include <QLineEdit>
#include <QPushButton>
#include <QCheckbox>
#include "particledefine.h"

namespace ParticleEditor
{
	class TexturePreviewWidget:public QWidget
	{
		Q_OBJECT
	public:
		TexturePreviewWidget(QWidget* parent = NULL);
		~TexturePreviewWidget();
		void initTexture(ParticleSystemLayer ps);
		void copyLayer(ParticleSystemLayer psl,ParticleSystemLayer newpsl);
	private:
		QLineEdit*								_textureLineEdit;
		QPushButton*							_pushButton;
		PublicGui::TexturePreviewLabel*			_texturePreviewLabel;
		QCheckBox*								_lightAble;
		QCheckBox*								_emissive;
		ParticleSystemLayer						_particleSystemLayer;
	private slots:
		void slotToggleEmissive(int);
		void slotToggleLighting(int);
		void slotPushButtonClick(bool);
	};
}